/*--------------------------------------------------------------------------------*/
#ifndef __COLOR__
#define __COLOR__
/*--------------------------------------------------------------------------------*/
#include "util.h"
#include "ref_to_.h"
#include "primitives.h"
#include "object.h"
using namespace std;
/*--------------------------------------------------------------------------------*/
class COLOR : public OBJECT
{

public:

    DECLARE_REF( COLOR );

    // .. CONSTRUCTORS

    COLOR() : OBJECT(), Red(0), Green(0), Blue(0), Alpha(0)
    {
    }

    COLOR( const REAL & red, const REAL & green, const REAL & blue, const REAL & alpha )
        : OBJECT(), Red(red), Green(green), Blue(blue), Alpha(alpha)
    {
    }

    COLOR( const REAL & red, const REAL & green, const REAL & blue )
        : OBJECT(), Red(red), Green(green), Blue(blue), Alpha( 1 )
    {
    }
    // .. METHODS

    VOID Set( const REAL & red, const REAL & green, const REAL & blue, const REAL & alpha )
    {
        Red = red;
        Green = green;
        Blue = blue;
        Alpha = alpha;
    }

    // .. ATTRIBUTES

    REAL
		Red,
		Green,
		Blue,
		Alpha;

    static COLOR
		ColorRed,
		ColorGreen,
		ColorBlue,
		ColorWhite,
		ColorBlack,
		ColorYellow,
		ColorPink,
		ColorGrey;

};
/*--------------------------------------------------------------------------------*/
#endif



